package cn.livingCloud.dto;

import cn.livingCloud.entity.core.CaseImage;
import com.alibaba.druid.util.StringUtils;

/**
 * Created by DingJie on 2016/6/3.
 */
public class CaseImageDto {
    private String uuid;
    private String caseUuid;
    private String url;
    private Boolean isResult;

    public CaseImageDto() {
    }

    public CaseImageDto(CaseImage caseImage) {
        this.uuid = caseImage.getUuid();
        this.caseUuid = caseImage.getCaseUuid();
        if (StringUtils.isEmpty(this.url)) {
            this.url = caseImage.getUrl();
        }
        this.isResult = caseImage.getIsResult();
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getCaseUuid() {
        return caseUuid;
    }

    public void setCaseUuid(String caseUuid) {
        this.caseUuid = caseUuid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Boolean getIsResult() {
        return isResult;
    }

    public void setIsResult(Boolean isResult) {
        this.isResult = isResult;
    }
}
